<?php
/**
 * Created by PhpStorm.
 * User: root
 * Date: 9/4/14
 * Time: 12:53 PM
 */

namespace App\Modules\Ecommerce\Models;

use Illuminate\Auth\UserInterface;
use Illuminate\Auth\Reminders\RemindableInterface;

class Account extends \Eloquent implements UserInterface  , RemindableInterface
{
    protected $table = "account";

    protected $hidden = ["password"];

    protected $guarded = ["id"];

    protected $softDelete = true;

    public function getAuthIdentifier()
    {
        return $this->getKey();
    }

    public function getAuthPassword()
    {
        return $this->password;
    }

    public function getReminderEmail()
    {
        return $this->email;
    }

    public function getRememberToken()
    {

    }

    public function setRememberToken($value)
    {

    }

    public function getRememberTokenName()
    {

    }

    public function orders()
    {
        return $this->hasMany("Order");
    }
} 